migrate from directory level cmake commands to target commands. (#802)
authortsteven4 <13596209+tsteven4@users.noreply.github.com>
Mon, 27 Dec 2021 13:36:27 +0000 (06:36 -0700)
committerGitHub <noreply@github.com>
Mon, 27 Dec 2021 13:36:27 +0000 (06:36 -0700)
commit5aa17eb91061fb957030d1944441d9eb577f4389
treed66ab913ead82ad24fe7aa19efeae94efe2bd167
parent7f63fefaab1c227a0fb6131079b9a5cd81a221de
migrate from directory level cmake commands to target commands. (#802)

* migrate from directory level cmake commands to target commands.

fix a few bugs with our CMakeLists:

set WIN32 for gui target.  remove _CONSOLE, it's obsolete.

when undefining UNICODE, also undefine _UNICODE.  it's not clear to
me we have a sensitivity to UNICODE/_UNICODE.

take optimization flags out of CMakeLists, rely on CMAKE_BUILD_TYPE
to select appropriate flags.

don't force ZLIB_INHIBITED to be undefined on windows.

add cmake support for some of our configuration options:
disable-mappreview, embed_map, embed_translations.

* fix duplicated code in gui/CMakeLists.txt

* spelling fix for INSTALL.
CMakeLists.txt
GPSBabel.pro
INSTALL
gui/CMakeLists.txt
gui/app.pro